<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>入库单打印</title>
<style media="print">
    @page {
      size: auto;  /* auto is the initial value */
      margin: 0mm 15mm 0mm 0mm; /* this affects the margin in the printer settings */
    }
</style>
<style>
* {
	font-size: 14px;
	font-family: 'SimHei','SimSun';
}

body {
	width: 100%;
	margin: 0;
	padding: 0;
}

.wrap {
	padding: 0px 50px 0 50px;
}

.title {
	text-align: center;
	font-size: 1.8em;
	text-align: center;
	margin: 30px 0 8px 0;
}

/* h3 {
	font-size: 1.8em;
	text-align: center;
	margin: 30px 0 8px 0;
} */

table th, table td {
	vertical-align: middle;
}

.form-header, .form-bottom, .vacc-bottom {
	width: 100%;
	margin: 0 auto;
}

.form-bottom, .vacc-bottom {
	margin-bottom: 20px;
}

.form-bottom tr td {
	line-height: 25px;
}

.form-header td {
	width: 50%;
}

.vacc-info, .tran-tool {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	text-align: left;
	margin-bottom: 20px;
}

.vacc-info th, .tran-tool th {
	font-weight: normal;
	text-align: center;
	font-size: 1.2em;
	padding: 4px;
}

.tran-tool th {
	text-align: left;
}

.vacc-info td, .tran-tool td {
	font-size: 15px;
	font-family: SimSun;
	font-weight: bold;
	padding: 4px 5px;
}

.vacc-info-height td, .tran-tool td {
	height: 45px;
}

.vacc-info-height th {
    height: 50px;
}

 .underline2, .underline3, .underline4 {
	border-bottom: thin solid #000;
	position: relative;
}

.underline {
	padding: 0 3px;
	display: inline-block;
	width: 100px;
	border-bottom: 1px solid #000;
}
.underline2 {
	padding: 0 20px;
}

.underline3 {
	padding: 0 40px;
}

.underline4 {
	/* padding: 0 40px; */
	padding: 0 60px;
}

th span {
	bottom: -1px;
}

td span {
	margin-right: 4px;
	line-height: 26px;
	bottom: -2px;
}

.mr10 {
	margin-right: 10px;
}

.w30 {
	width: 5%;
	min-width: 5%;
}

.w40 {
	width: 5.5%;
	min-width: 5.5%;
}

.w50 {
	width: 8%;
	min-width: 8%;
}

.w70 {
	width: 10%;
	min-width: 10%;
}

.w100 {
	width: 14%;
	min-width: 14%;
}
</style>
<script>
		<%-- 瑶海区入库单打印 --%>
</script>
</head>
<body>
	<div class="wrap">
		<p class = "title">瑶海区${fns:getDictLabel(bsVaccineOrder.cType,"bs_vaccineInfo_type","-")}苗档案资料</p>
		<br/>
		<table border="1" class="vacc-info vacc-info-height">
		   <tr>
				<th class = "w40">订单号</th>
				<th colspan="2">${bsVaccineOrder.orderNo}</th>
				<th class = "w30">收货日期</th>
				<th colspan="2"><fmt:formatDate value="${bsVaccineOrder.outboundDate}" pattern="yyyy.MM.dd"/></th>
			</tr>
			<tr>
				<th class = "w40">序号</th>
				<th class = "w100">疫苗名称</th>
				<th class = "w50">生产企业</th>
				<th class = "w30">批号</th>
				<th class = "w40">有效期</th>
				<th class = "w30">数量</th>
			</tr>
			<c:forEach items="${list}" var="li" end="4">
				<tr>
					<td>${li.no == 0?'':li.no}</td>
					<td>${li.bsVaccineBatchno.vaccineName }</td>
					<td>${li.bsVaccineBatchno.companyName }</td>
					<td>
						${li.bsVaccineBatchno.batchno}
						<c:if test="${not empty li.bsVaccineBatchno.secondBatchno}">
					        -${li.bsVaccineBatchno.secondBatchno}
					    </c:if>
					</td>
					<td><fmt:formatDate value="${li.bsVaccineBatchno.outBoundDate}" pattern="yyyy/MM/dd"/></td>
					<td>
						<c:if test="${not empty li.vaccNum }">
						    ${li.vaccNum }${li.bsVaccineBatchno.unit}
					    </c:if>
					    <c:if test="${empty li.vaccNum }">
					    </c:if>
					</td>
				</tr>
			</c:forEach>
			<tr>
				<td>6</td>
				<td colspan="5">疫苗配送清单</td>
			</tr>
			<tr>
				<td>7</td>
				<td colspan="5">疫苗出库单</td>
			</tr>
			<tr>
				<td>8</td>
				<td colspan="5">疫苗收货确认回执函</td>
			</tr>
			<tr>
				<td>9</td>
				<td colspan="5">生产厂家在库温度（1 电子     2 纸质）</td>
			</tr>
			<tr>
				<td>10</td>
				<td colspan="5">生产厂家路途温度（1 电子     2 纸质）</td>
			</tr>
			<tr>
				<td>11</td>
				<td colspan="5">疫苗批签发</td>
			</tr>
			<tr>
				<td>12</td>
				<td colspan="5">疫苗检验报告</td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</table>
	</div>
</body>
<script>
	window.print(); 
	setTimeout("top.opener=null;window.close()",1);
</script>
</html>